/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package listener;

import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

/**
 *
 * @author nivri
 */
public class ListenerApp implements PhaseListener{

    @Override
    public void afterPhase(PhaseEvent event) {
        System.out.println("after Phase");
    }

    @Override
    public void beforePhase(PhaseEvent event) {
        System.out.println("before Phase");
    }

    @Override
    public PhaseId getPhaseId() {
       return PhaseId.ANY_PHASE; 
            
    }
    
}
